use model::member::Member;

pub enum MyError {
    NotFound,
    DatabaseError,
}

#[derive(Deserialize, Serialize, Debug)]
pub struct Msgs {
    pub status: i32,
    pub message: String,
}

#[derive(Deserialize, Serialize, Debug)]
pub struct LoginMsgs {
    pub status: i32,
    pub token: String,
    pub signin_user: Member,
    pub message: String,
}

#[derive(Deserialize, Serialize, Debug)]
pub struct UserInfoMsgs {
    pub status: i32,
    pub message: String,
    pub current_user: Member,
}
